package com.seraph.zys.dao.impl;

import com.seraph.bi.suite.support.domain.pagination.PageBox;
import com.seraph.bi.suite.support.domain.pagination.PageObject;
import com.seraph.zys.dao.PcTreatmentEncourageFeeDAO;
import com.seraph.zys.dao.domain.PcTreatmentEncourageFee;
import com.seraph.zys.dao.domain.PcTreatmentEncourageFeeExample;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

@Repository
public class PcTreatmentEncourageFeeDAOImpl extends SqlMapClientDaoSupport implements PcTreatmentEncourageFeeDAO {

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public PcTreatmentEncourageFeeDAOImpl() {
        super();
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public Integer insert(PcTreatmentEncourageFee record) {
        Object newKey = getSqlMapClientTemplate().insert("pc_treatment_encourage_fee.abatorgenerated_insert", record);
        return (Integer) newKey;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int updateByPrimaryKey(PcTreatmentEncourageFee record) {
        int rows = getSqlMapClientTemplate().update("pc_treatment_encourage_fee.abatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int updateByPrimaryKeySelective(PcTreatmentEncourageFee record) {
        int rows = getSqlMapClientTemplate().update("pc_treatment_encourage_fee.abatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public List selectByExample(PcTreatmentEncourageFeeExample example, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        List list = getSqlMapClientTemplate().queryForList("pc_treatment_encourage_fee.abatorgenerated_selectByExample", parms);
        return list;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public List selectByExample(PcTreatmentEncourageFeeExample example) {
        return selectByExample(example, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public PcTreatmentEncourageFee selectByPrimaryKey(Integer id) {
        PcTreatmentEncourageFee key = new PcTreatmentEncourageFee();
        key.setId(id);
        PcTreatmentEncourageFee record = (PcTreatmentEncourageFee) getSqlMapClientTemplate().queryForObject("pc_treatment_encourage_fee.abatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int deleteByExample(PcTreatmentEncourageFeeExample example) {
        int rows = getSqlMapClientTemplate().delete("pc_treatment_encourage_fee.abatorgenerated_deleteByExample", getExampleParms(example));
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int deleteByPrimaryKey(Integer id) {
        PcTreatmentEncourageFee key = new PcTreatmentEncourageFee();
        key.setId(id);
        int rows = getSqlMapClientTemplate().delete("pc_treatment_encourage_fee.abatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getIDExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getId_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NULL", "Y");
            } else {
                parms.put("AND_ID_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_ID_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_EQUALS", "Y");
            } else {
                parms.put("AND_ID_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_ID_NOT_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GT", "Y");
            } else {
                parms.put("AND_ID_GT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GE", "Y");
            } else {
                parms.put("AND_ID_GE", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LT", "Y");
            } else {
                parms.put("AND_ID_LT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LE", "Y");
            } else {
                parms.put("AND_ID_LE", "Y");
            }
            parms.put("id", example.getId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getFISCAL_YEARExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getFiscalYear_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getFROM_AREAExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getFromArea_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GT", "Y");
            } else {
                parms.put("AND_FROM_AREA_GT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GE", "Y");
            } else {
                parms.put("AND_FROM_AREA_GE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LT", "Y");
            } else {
                parms.put("AND_FROM_AREA_LT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LIKE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LIKE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getSORT_IDExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getSortId_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GT", "Y");
            } else {
                parms.put("AND_SORT_ID_GT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GE", "Y");
            } else {
                parms.put("AND_SORT_ID_GE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LT", "Y");
            } else {
                parms.put("AND_SORT_ID_LT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LE", "Y");
            } else {
                parms.put("AND_SORT_ID_LE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPATIENT_NAMEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientName_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_EQUALS", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_NOT_EQUALS", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_GT", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_GT", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_GE", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_GE", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_LT", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_LT", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_LE", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_LE", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_LIKE", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_LIKE", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getREPORTED_DISEASE_PERCENTExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getReportedDiseasePercent_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PERCENT_NULL", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PERCENT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PERCENT_NOT_NULL", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PERCENT_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PERCENT_EQUALS", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PERCENT_EQUALS", "Y");
            }
            parms.put("reportedDiseasePercent", example.getReportedDiseasePercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PERCENT_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PERCENT_NOT_EQUALS", "Y");
            }
            parms.put("reportedDiseasePercent", example.getReportedDiseasePercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PERCENT_GT", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PERCENT_GT", "Y");
            }
            parms.put("reportedDiseasePercent", example.getReportedDiseasePercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PERCENT_GE", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PERCENT_GE", "Y");
            }
            parms.put("reportedDiseasePercent", example.getReportedDiseasePercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PERCENT_LT", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PERCENT_LT", "Y");
            }
            parms.put("reportedDiseasePercent", example.getReportedDiseasePercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PERCENT_LE", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PERCENT_LE", "Y");
            }
            parms.put("reportedDiseasePercent", example.getReportedDiseasePercent());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getREPORTED_DISEASE_PRICEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getReportedDiseasePrice_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PRICE_NULL", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PRICE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PRICE_NOT_NULL", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PRICE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PRICE_EQUALS", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PRICE_EQUALS", "Y");
            }
            parms.put("reportedDiseasePrice", example.getReportedDiseasePrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PRICE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PRICE_NOT_EQUALS", "Y");
            }
            parms.put("reportedDiseasePrice", example.getReportedDiseasePrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PRICE_GT", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PRICE_GT", "Y");
            }
            parms.put("reportedDiseasePrice", example.getReportedDiseasePrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PRICE_GE", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PRICE_GE", "Y");
            }
            parms.put("reportedDiseasePrice", example.getReportedDiseasePrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PRICE_LT", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PRICE_LT", "Y");
            }
            parms.put("reportedDiseasePrice", example.getReportedDiseasePrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_PRICE_LE", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_PRICE_LE", "Y");
            }
            parms.put("reportedDiseasePrice", example.getReportedDiseasePrice());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getREPORTED_DISEASE_FEEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getReportedDiseaseFee_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_FEE_NULL", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_FEE_EQUALS", "Y");
            }
            parms.put("reportedDiseaseFee", example.getReportedDiseaseFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_FEE_NOT_EQUALS", "Y");
            }
            parms.put("reportedDiseaseFee", example.getReportedDiseaseFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_FEE_GT", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_FEE_GT", "Y");
            }
            parms.put("reportedDiseaseFee", example.getReportedDiseaseFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_FEE_GE", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_FEE_GE", "Y");
            }
            parms.put("reportedDiseaseFee", example.getReportedDiseaseFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_FEE_LT", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_FEE_LT", "Y");
            }
            parms.put("reportedDiseaseFee", example.getReportedDiseaseFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_REPORTED_DISEASE_FEE_LE", "Y");
            } else {
                parms.put("AND_REPORTED_DISEASE_FEE_LE", "Y");
            }
            parms.put("reportedDiseaseFee", example.getReportedDiseaseFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPATIENT_TRACK_PERCENTExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientTrackPercent_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PERCENT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PERCENT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PERCENT_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PERCENT_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PERCENT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PERCENT_EQUALS", "Y");
            }
            parms.put("patientTrackPercent", example.getPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PERCENT_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PERCENT_NOT_EQUALS", "Y");
            }
            parms.put("patientTrackPercent", example.getPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PERCENT_GT", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PERCENT_GT", "Y");
            }
            parms.put("patientTrackPercent", example.getPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PERCENT_GE", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PERCENT_GE", "Y");
            }
            parms.put("patientTrackPercent", example.getPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PERCENT_LT", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PERCENT_LT", "Y");
            }
            parms.put("patientTrackPercent", example.getPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PERCENT_LE", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PERCENT_LE", "Y");
            }
            parms.put("patientTrackPercent", example.getPatientTrackPercent());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPATIENT_TRACK_PRICEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientTrackPrice_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PRICE_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PRICE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PRICE_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PRICE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PRICE_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PRICE_EQUALS", "Y");
            }
            parms.put("patientTrackPrice", example.getPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PRICE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PRICE_NOT_EQUALS", "Y");
            }
            parms.put("patientTrackPrice", example.getPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PRICE_GT", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PRICE_GT", "Y");
            }
            parms.put("patientTrackPrice", example.getPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PRICE_GE", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PRICE_GE", "Y");
            }
            parms.put("patientTrackPrice", example.getPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PRICE_LT", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PRICE_LT", "Y");
            }
            parms.put("patientTrackPrice", example.getPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_PRICE_LE", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_PRICE_LE", "Y");
            }
            parms.put("patientTrackPrice", example.getPatientTrackPrice());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPATIENT_TRACK_FEEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientTrackFee_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_FEE_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_FEE_EQUALS", "Y");
            }
            parms.put("patientTrackFee", example.getPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_FEE_NOT_EQUALS", "Y");
            }
            parms.put("patientTrackFee", example.getPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_FEE_GT", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_FEE_GT", "Y");
            }
            parms.put("patientTrackFee", example.getPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_FEE_GE", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_FEE_GE", "Y");
            }
            parms.put("patientTrackFee", example.getPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_FEE_LT", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_FEE_LT", "Y");
            }
            parms.put("patientTrackFee", example.getPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_TRACK_FEE_LE", "Y");
            } else {
                parms.put("AND_PATIENT_TRACK_FEE_LE", "Y");
            }
            parms.put("patientTrackFee", example.getPatientTrackFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getINTER_PATIENT_TRACK_PERCENTExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getInterPatientTrackPercent_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PERCENT_NULL", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PERCENT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PERCENT_NOT_NULL", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PERCENT_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PERCENT_EQUALS", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PERCENT_EQUALS", "Y");
            }
            parms.put("interPatientTrackPercent", example.getInterPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PERCENT_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PERCENT_NOT_EQUALS", "Y");
            }
            parms.put("interPatientTrackPercent", example.getInterPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PERCENT_GT", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PERCENT_GT", "Y");
            }
            parms.put("interPatientTrackPercent", example.getInterPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PERCENT_GE", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PERCENT_GE", "Y");
            }
            parms.put("interPatientTrackPercent", example.getInterPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PERCENT_LT", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PERCENT_LT", "Y");
            }
            parms.put("interPatientTrackPercent", example.getInterPatientTrackPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PERCENT_LE", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PERCENT_LE", "Y");
            }
            parms.put("interPatientTrackPercent", example.getInterPatientTrackPercent());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getINTER_PATIENT_TRACK_PRICEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getInterPatientTrackPrice_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PRICE_NULL", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PRICE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PRICE_NOT_NULL", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PRICE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PRICE_EQUALS", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PRICE_EQUALS", "Y");
            }
            parms.put("interPatientTrackPrice", example.getInterPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PRICE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PRICE_NOT_EQUALS", "Y");
            }
            parms.put("interPatientTrackPrice", example.getInterPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PRICE_GT", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PRICE_GT", "Y");
            }
            parms.put("interPatientTrackPrice", example.getInterPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PRICE_GE", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PRICE_GE", "Y");
            }
            parms.put("interPatientTrackPrice", example.getInterPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PRICE_LT", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PRICE_LT", "Y");
            }
            parms.put("interPatientTrackPrice", example.getInterPatientTrackPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_PRICE_LE", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_PRICE_LE", "Y");
            }
            parms.put("interPatientTrackPrice", example.getInterPatientTrackPrice());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getINTER_PATIENT_TRACK_FEEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getInterPatientTrackFee_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_FEE_NULL", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_FEE_EQUALS", "Y");
            }
            parms.put("interPatientTrackFee", example.getInterPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_FEE_NOT_EQUALS", "Y");
            }
            parms.put("interPatientTrackFee", example.getInterPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_FEE_GT", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_FEE_GT", "Y");
            }
            parms.put("interPatientTrackFee", example.getInterPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_FEE_GE", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_FEE_GE", "Y");
            }
            parms.put("interPatientTrackFee", example.getInterPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_FEE_LT", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_FEE_LT", "Y");
            }
            parms.put("interPatientTrackFee", example.getInterPatientTrackFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_INTER_PATIENT_TRACK_FEE_LE", "Y");
            } else {
                parms.put("AND_INTER_PATIENT_TRACK_FEE_LE", "Y");
            }
            parms.put("interPatientTrackFee", example.getInterPatientTrackFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPATIENT_FILTER_PERCENTExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientFilterPercent_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PERCENT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PERCENT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PERCENT_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PERCENT_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PERCENT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PERCENT_EQUALS", "Y");
            }
            parms.put("patientFilterPercent", example.getPatientFilterPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PERCENT_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PERCENT_NOT_EQUALS", "Y");
            }
            parms.put("patientFilterPercent", example.getPatientFilterPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PERCENT_GT", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PERCENT_GT", "Y");
            }
            parms.put("patientFilterPercent", example.getPatientFilterPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PERCENT_GE", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PERCENT_GE", "Y");
            }
            parms.put("patientFilterPercent", example.getPatientFilterPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PERCENT_LT", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PERCENT_LT", "Y");
            }
            parms.put("patientFilterPercent", example.getPatientFilterPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PERCENT_LE", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PERCENT_LE", "Y");
            }
            parms.put("patientFilterPercent", example.getPatientFilterPercent());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPATIENT_FILTER_PRICEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientFilterPrice_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PRICE_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PRICE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PRICE_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PRICE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PRICE_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PRICE_EQUALS", "Y");
            }
            parms.put("patientFilterPrice", example.getPatientFilterPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PRICE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PRICE_NOT_EQUALS", "Y");
            }
            parms.put("patientFilterPrice", example.getPatientFilterPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PRICE_GT", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PRICE_GT", "Y");
            }
            parms.put("patientFilterPrice", example.getPatientFilterPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PRICE_GE", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PRICE_GE", "Y");
            }
            parms.put("patientFilterPrice", example.getPatientFilterPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PRICE_LT", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PRICE_LT", "Y");
            }
            parms.put("patientFilterPrice", example.getPatientFilterPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_PRICE_LE", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_PRICE_LE", "Y");
            }
            parms.put("patientFilterPrice", example.getPatientFilterPrice());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPATIENT_FILTER_FEEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientFilterFee_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_FEE_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_FEE_EQUALS", "Y");
            }
            parms.put("patientFilterFee", example.getPatientFilterFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_FEE_NOT_EQUALS", "Y");
            }
            parms.put("patientFilterFee", example.getPatientFilterFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_FEE_GT", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_FEE_GT", "Y");
            }
            parms.put("patientFilterFee", example.getPatientFilterFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_FEE_GE", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_FEE_GE", "Y");
            }
            parms.put("patientFilterFee", example.getPatientFilterFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_FEE_LT", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_FEE_LT", "Y");
            }
            parms.put("patientFilterFee", example.getPatientFilterFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_FILTER_FEE_LE", "Y");
            } else {
                parms.put("AND_PATIENT_FILTER_FEE_LE", "Y");
            }
            parms.put("patientFilterFee", example.getPatientFilterFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPSYCHOLOGICAL_PERCENTExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPsychologicalPercent_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PERCENT_NULL", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PERCENT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PERCENT_NOT_NULL", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PERCENT_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PERCENT_EQUALS", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PERCENT_EQUALS", "Y");
            }
            parms.put("psychologicalPercent", example.getPsychologicalPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PERCENT_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PERCENT_NOT_EQUALS", "Y");
            }
            parms.put("psychologicalPercent", example.getPsychologicalPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PERCENT_GT", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PERCENT_GT", "Y");
            }
            parms.put("psychologicalPercent", example.getPsychologicalPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PERCENT_GE", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PERCENT_GE", "Y");
            }
            parms.put("psychologicalPercent", example.getPsychologicalPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PERCENT_LT", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PERCENT_LT", "Y");
            }
            parms.put("psychologicalPercent", example.getPsychologicalPercent());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PERCENT_LE", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PERCENT_LE", "Y");
            }
            parms.put("psychologicalPercent", example.getPsychologicalPercent());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPSYCHOLOGICAL_PRICEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPsychologicalPrice_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PRICE_NULL", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PRICE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PRICE_NOT_NULL", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PRICE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PRICE_EQUALS", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PRICE_EQUALS", "Y");
            }
            parms.put("psychologicalPrice", example.getPsychologicalPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PRICE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PRICE_NOT_EQUALS", "Y");
            }
            parms.put("psychologicalPrice", example.getPsychologicalPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PRICE_GT", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PRICE_GT", "Y");
            }
            parms.put("psychologicalPrice", example.getPsychologicalPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PRICE_GE", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PRICE_GE", "Y");
            }
            parms.put("psychologicalPrice", example.getPsychologicalPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PRICE_LT", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PRICE_LT", "Y");
            }
            parms.put("psychologicalPrice", example.getPsychologicalPrice());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_PRICE_LE", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_PRICE_LE", "Y");
            }
            parms.put("psychologicalPrice", example.getPsychologicalPrice());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPSYCHOLOGICAL_FEEExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPsychologicalFee_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_FEE_NULL", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_FEE_EQUALS", "Y");
            }
            parms.put("psychologicalFee", example.getPsychologicalFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_FEE_NOT_EQUALS", "Y");
            }
            parms.put("psychologicalFee", example.getPsychologicalFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_FEE_GT", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_FEE_GT", "Y");
            }
            parms.put("psychologicalFee", example.getPsychologicalFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_FEE_GE", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_FEE_GE", "Y");
            }
            parms.put("psychologicalFee", example.getPsychologicalFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_FEE_LT", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_FEE_LT", "Y");
            }
            parms.put("psychologicalFee", example.getPsychologicalFee());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PSYCHOLOGICAL_FEE_LE", "Y");
            } else {
                parms.put("AND_PSYCHOLOGICAL_FEE_LE", "Y");
            }
            parms.put("psychologicalFee", example.getPsychologicalFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getTOTALExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getTotal_Indicator()) {
        case PcTreatmentEncourageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_NULL", "Y");
            } else {
                parms.put("AND_TOTAL_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_NOT_NULL", "Y");
            } else {
                parms.put("AND_TOTAL_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_EQUALS", "Y");
            } else {
                parms.put("AND_TOTAL_EQUALS", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_TOTAL_NOT_EQUALS", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_GT", "Y");
            } else {
                parms.put("AND_TOTAL_GT", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_GE", "Y");
            } else {
                parms.put("AND_TOTAL_GE", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_LT", "Y");
            } else {
                parms.put("AND_TOTAL_LT", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentEncourageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_LE", "Y");
            } else {
                parms.put("AND_TOTAL_LE", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getExampleParms(PcTreatmentEncourageFeeExample example) {
        Map parms = new HashMap();
        parms.putAll(getIDExampleParms(example));
        parms.putAll(getFISCAL_YEARExampleParms(example));
        parms.putAll(getFROM_AREAExampleParms(example));
        parms.putAll(getSORT_IDExampleParms(example));
        parms.putAll(getPATIENT_NAMEExampleParms(example));
        parms.putAll(getREPORTED_DISEASE_PERCENTExampleParms(example));
        parms.putAll(getREPORTED_DISEASE_PRICEExampleParms(example));
        parms.putAll(getREPORTED_DISEASE_FEEExampleParms(example));
        parms.putAll(getPATIENT_TRACK_PERCENTExampleParms(example));
        parms.putAll(getPATIENT_TRACK_PRICEExampleParms(example));
        parms.putAll(getPATIENT_TRACK_FEEExampleParms(example));
        parms.putAll(getINTER_PATIENT_TRACK_PERCENTExampleParms(example));
        parms.putAll(getINTER_PATIENT_TRACK_PRICEExampleParms(example));
        parms.putAll(getINTER_PATIENT_TRACK_FEEExampleParms(example));
        parms.putAll(getPATIENT_FILTER_PERCENTExampleParms(example));
        parms.putAll(getPATIENT_FILTER_PRICEExampleParms(example));
        parms.putAll(getPATIENT_FILTER_FEEExampleParms(example));
        parms.putAll(getPSYCHOLOGICAL_PERCENTExampleParms(example));
        parms.putAll(getPSYCHOLOGICAL_PRICEExampleParms(example));
        parms.putAll(getPSYCHOLOGICAL_FEEExampleParms(example));
        parms.putAll(getTOTALExampleParms(example));
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int selectCountByExample(PcTreatmentEncourageFeeExample example) {
        Map parms = getExampleParms(example);
        int count = ((Integer)getSqlMapClientTemplate().queryForObject("pc_treatment_encourage_fee.abatorgenerated_selectCountByExample", parms)).intValue();
        return count;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public PageBox selectByExampleWithPaging(PcTreatmentEncourageFeeExample example, int pageSize, int pageNum, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        PageBox pageBox = new PageBox();
        PageObject pageObject = new PageObject();
        pageObject.setPageSize(pageSize);
        pageObject.setPageIndex(pageNum);
        int itemAmount = selectCountByExample(example);
        pageObject.setItemAmount(itemAmount);
        List pageList = null;
        if (pageObject.getBeginIndex() <= pageObject.getItemAmount()) {
            pageList = (getSqlMapClientTemplate().queryForList("pc_treatment_encourage_fee.abatorgenerated_selectByExample", parms, pageObject.getBeginIndex() - 1, pageSize));
        }
        pageBox.setPageObject(pageObject);
        pageBox.setPageList(pageList);
        return pageBox;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public PageBox selectByExampleWithPaging(PcTreatmentEncourageFeeExample example, int pageSize, int pageNum) {
        return selectByExampleWithPaging(example, pageSize, pageNum, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_encourage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int updateByPrimaryKeyForCgs(PcTreatmentEncourageFee record) {
        int rows = getSqlMapClientTemplate().update("pc_treatment_encourage_fee.abatorgenerated_updateByPrimaryKeyForCgs", record);
        return rows;
    }
}